package com.fingersoft.feature.faceId

import com.fingersoft.business.BusinessContext
import com.fingersoft.im.utils.AppConfigUtils
import com.fingersoft.im.utils.AppUtils
/**
 * Created by zhanglongzhi(Roy) on 2018/7/31.
 */
class SealFaceIDCallback: IFaceIDCallBack {

    override fun isFaceIDEnable(): Boolean {
        return (AppUtils.useFaceID() && AppConfigUtils.getAppConfigInfo(null).isFace_id_enable)
    }

    override fun getFaceIDAppKey(): String {
        return BusinessContext.getAppConfigInfo().face_id_app_key
    }

    override fun getFaceIDAppSecret(): String {

        return BusinessContext.getAppConfigInfo().face_id_app_secret
    }

    override fun getFaceIDApiUrl(): String {
        return BusinessContext.getAppConfigInfo().face_id_api_url
    }

    override fun getFaceIDAppId(): String {
        return BusinessContext.getAppConfigInfo().face_id_app_id
    }

    override fun getFaceIDTransCode(): String {
        return BusinessContext.getAppConfigInfo().face_id_trans_code
    }

    override fun getFaceIDChannelType(): String {
        return BusinessContext.getAppConfigInfo().face_id_channel_type
    }
}
